package interfaceDemo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2025-03-12
 * Time: 16:12
 */
public class InterImpl implements Inter{
    @Override
    public void meythod() {
        System.out.println("实现类重写的抽象方法");
    }

    //此时不能用default修饰这个方法，即不能写成public default void show()
    @Override
    public void show() {
        System.out.println("重写接口Inter中的默认方法");
    }
}
